#ifndef STUDENTINFO_H
#define STUDENTINFO_H

#include <QString>
#include "admininfo.h"

class StudentInfo: public AdminInfo
{
public:
    StudentInfo();
    StudentInfo(const QString &id,const QString &name,
                const QString &xuehao,const QString &pswd,
                const QString &sex,const QString &classid,const QString &RxTime);
    ~StudentInfo();

    void updateStudentInfo(const StudentInfo &info);
    void updateStudentInfo(const QString &id,const QString &name,
                           const QString &xuehao,const QString &pswd,
                           const QString &sex,const QString &classid,const QString &RxTime);

    void display() const;

    void setID(const QString &id);
    const QString &getID() const;

    void setName(const QString &name);
    const QString &getName() const;

    void setxuehao(const QString &xuehao);
    const QString &getxuehao() const;

    void setpswd(const QString &pswd);
    const QString &getpswd() const;

    void setsex(const QString &sex);
    const QString &getsex() const;

    void setclassid(const QString &classid);
    const QString &getclassid() const;

    void setRxTime(const QString &RxTime);
    const QString &getRxTime() const;

private:
    QString m_id;
    QString m_name;
    QString m_xuehao;
    QString m_pswd;
    QString m_sex;
    QString m_classid;
    QString m_RxTime;
};

typedef QList<StudentInfo> ListStudentInfo;

#endif // STUDENTINFO_H
